<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 自由如风
  Date: 2018/6/12
  Time: 22:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
        .btn{
            background-color: #1ba593;
            border-color: #188f7f;
            color: white;
        }
    </style>


    <script src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">
        function mf() {

            var message = (confirm('确认提交?'));
            if(message == true) {
                return true;
            }else {
                return false;
            }
        }
    </script>
</head>
<body>

<form method="post" id="myForm" action="${pageContext.request.contextPath}/studentAnswer/addAAnswer?examId=${examId}" onsubmit="return mf()">
一：单选题<br/>
    <hr>
<c:forEach items="${optionList}" var="option" varStatus="count">

    <label>
    ${count.count}、${option.optionQuestion}<br/>
    <input type="radio" name="${count.count}" value="A"/>A.${option.optionA}<br/>
    <input type="radio" name="${count.count}" value="B"/>B.${option.optionB}<br/>
    <input type="radio" name="${count.count}" value="C"/>C.${option.optionC}<br/>
    <input type="radio" name="${count.count}" value="D"/>D.${option.optionD}<br/>
    </label>
    <hr>
</c:forEach>
<br/>

二：填空题<br/>
    <hr>
    <c:forEach items="${blankList}" var="blank" varStatus="count">
    ${count.count}、${blank.blankQuestion}<br/>
    答案:<input id="blankInput" type="text" name="blanksId${count.count}"/><br/>
        <hr>
    </c:forEach>
    <input type="submit" value="提交"  class="btn">
</form>



</body>
</html>
